package main

import (
	"fmt"
	"github.com/gofiber/fiber"
	"gowork/newCustomers/controller"
	"gowork/newCustomers/utils"
)

func main()  {
	w := new(utils.Worker)
	for i:=1; i<=15; i++ {
		fmt.Println(w.GetId())
	}

	app := fiber.New()

	ncc := new(controller.NewCustomersController)
	app.Post("/submit", ncc.Submit)
	app.Post("/viewReport", ncc.ViewReport)
	app.Post("/queryDietInformation", ncc.QueryDietInformation)
	app.Post("/submitAsync", ncc.SubmitAsync)
	app.Post("/viewReportAsync", ncc.ViewReportAsync)

	app.Listen(3046)
}
